package com.lifesea.system.api;

import com.github.pagehelper.PageInfo;
import com.lifesea.base.entity.PagingRequest;
import com.lifesea.commons.exception.ErrorCodeException;
import com.lifesea.model.SysLog;

import java.util.List;
import java.util.Map;

/**
 * 日志方法接口
 *
 */
public interface LogApi {

    PageInfo<SysLog> getPage(PagingRequest pagingRequest, Map conditionBean)throws ErrorCodeException;

    SysLog get(Long pkId) throws ErrorCodeException;

    List<SysLog> get(Map conditionBean) throws ErrorCodeException;

    int save(SysLog record)  throws ErrorCodeException;

    int saveGeneratedKeys(SysLog record)  throws ErrorCodeException;

    boolean insertLog(SysLog record)  throws ErrorCodeException;

    int updateByPrimary(SysLog record)  throws ErrorCodeException;

    int delete(Long pkId)  throws ErrorCodeException;
}
